/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: app2022 - Exception3
 * <p>Powered by webrx On 2022-01-14 11:35:20
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Exception3 {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            try{

                if(i ==3){
                    //int t = i /0;
                    break;
                }
                System.out.println(i);
                continue;

            }catch(Exception e){
                System.out.println("有异常"+e.getMessage());
            }finally{
                ++i;
                System.out.println("finally:"+ ++i);
            }
        }
    }
}
